<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="{:url()}"  method="post" target="_blank">

    <div class="layui-form-item">
        <label class="layui-form-label">订单号</label>
        <div class="layui-input-block">
            <input type="text" name="order_sn" value="" placeholder="订单号" class="layui-input rw20">
            <input type="hidden"  name="group_id" value="{$group_id}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">体检人姓名</label>
        <div class="layui-input-block">
            <input type="text" name="exam_name" value="" placeholder="用户名" class="layui-input rw20">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份证号码</label>
        <div class="layui-input-block">
            <input type="text" name="exam_idCard" value="" placeholder="身份证号码" class="layui-input rw20">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">起始时间</label>
        <div class="layui-input-block">
            <input type="text" id="start_time1" name="start_time" value="" placeholder="下单起始时间" class="layui-input rw20">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">结束时间</label>
        <div class="layui-input-block">
            <input type="text" id="end_time1" name="end_time" value="" placeholder="下单结束时间" class="layui-input rw20">
        </div>
    </div>

    <div class="layui-form-item">
    <label class="layui-form-label">体检机构</label>
    <div class="layui-input-block">
        <select name='mec_id' class='layui-select' lay-filter="mec_id" id="mec_id">
            <option value="">所有</option>
            {foreach $mec_list as $key=>$cate}
            <option  value='{$key}' >{$cate}</option>
            {/foreach}
        </select>
    </div>
    </div>

    <!--{if !empty($order_status)}-->
    <div class="layui-form-item ">
        <label class="layui-form-label">订单状态</label>
        <div class="layui-input-block">
            <select name="order_status" class="layui-select" >
                <option value="">所有</option>
                {foreach $order_status as $key=>$value}
                <option value="{$key}">{$value}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <!--{/if}-->


    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <input class="layui-btn" value="导出" type='submit'/>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消</button>
    </div>
</form>

<script>

    function renderForm() {
        layui.use('form', function(){
            var form = layui.form;
            form.render();
        });
    }

    // 初始化
    function initSelect() {

        renderForm();
    }



    (function () {
        layui.use('form', function(){
            var form = layui.form;
            form.render();
            date = new Date();
            layui.use('laydate', function(){
                var laydate = layui.laydate;

                laydate.render({
                    elem: '#start_time1',
                });

                laydate.render({
                    elem: '#end_time1',
                });

            });
            initSelect();
        });
    })();

</script>

